zfs: fix LINUX_ROOT_DEVICE when grub-probe fails
authorDoug Goldstein <cardoe@cardoe.com>
Fri, 18 Dec 2020 02:27:14 +0000 (20:27 -0600)
committerMiao Wang <shankerwangmiao@gmail.com>
Sun, 15 Feb 2026 13:50:20 +0000 (13:50 +0000)
commit42505744e01153ac2be71a40130d2525536e9556
tree92a3e1895354f276dfca250c5e3b2a8a41c786a9
parentc4c6445bcd1f499643bb187daac11ede08f024b7
zfs: fix LINUX_ROOT_DEVICE when grub-probe fails

When grub-probe fails, the current code is to just stuff an empty result
in which causes the user to not knowingly have a system that no longer
boots. grub-probe can fail because the ZFS pool that contains the root
filesystem might have features that grub does not yet support which is a
common configuration for people with a rpool and a bpool. This behavior
uses the zdb utility to dump the same value as the filesystem label
would print.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name zfs-fix-LINUX_ROOT_DEVICE-when-grub-probe-fails.patch
util/grub.d/10_linux.in
util/grub.d/20_linux_xen.in